<html>
<%
	String param1 = request.getParameter("param1") ;
	String referer = request.getHeader("Referer");
	request.setAttribute("param2", "val2");
	request.getRequestDispatcher("/post2.jsp").forward(request, response);
%>
<head>
</head>
<body>
<h2>POST1</h2>

param1=<%=param1 %>,referer=<%=referer %>

<form id="form" action="post2.jsp" method="post">
	<input name="param1" value="val1"  type="text"/>
	<input value="submit" type="submit"/>
</form>
</body>
</html>
